import request from '@/utils/request'
import defaultSettings from '@/settings'

export const apiUrlConfig = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/clearAccountManage/fundpoolManagement/ClearingAccountfundpoolApprove/search`,
}

export function detail(params) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/clearAccountManage/fundpoolManagement/ClearingAccountfundpoolApprove/detail`,
        method: 'get',
        params
    })
}

export const searchTableapl = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/clearAccountManage/fundpoolManagement/ClearingAccountfundpoolApprove/searchTableapl`,
}

// 审核接口
export function approve(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/clearAccountManage/fundpoolManagement/ClearingAccountfundpoolApprove/approve`,
        method: 'post',
        data: data
    })
}
// 拒绝接口
export function reject(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/clearAccountManage/fundpoolManagement/ClearingAccountfundpoolApprove/reject`,
        method: 'post',
        data: data
    })
}